package com.campus.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class ManagerActivityUpdateDto {

    @ApiModelProperty("活动id")
    @NotNull(message = "活动id不能为空")
    private Long id;

    @ApiModelProperty("活动名称")
    private String name;
    @ApiModelProperty("活动类型")
    private String category;
    @ApiModelProperty("活动全称")
    private String title;
    @ApiModelProperty("活动创建者")
    private String creator;
    @ApiModelProperty("活动摘要")
    private String tabstract;
    @ApiModelProperty("活动详细内容")
    private String detailedDesc;
    @ApiModelProperty("活动状态")
    private Long status;
    @ApiModelProperty("活动归档时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date archivedTime;
    @ApiModelProperty("活动图片地址")
    private String picUrls;
    @ApiModelProperty("活动开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @ApiModelProperty("活动结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
